﻿using System;
using System.ComponentModel.DataAnnotations;

namespace AfrikDotnetWebSite.Models
{
    public class Job
    {
        public int Id { get; set; }

        [Required]
        public string Title { get; set; }

        [Required]
        public string Company { get; set; }

        [Required]
        public string Location { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime PostedOn { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime ExpiresOn { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        public string Details { get; set; }
    }
}